# 该文件为config.py的额外补充文件

from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
# 创建对象
db = SQLAlchemy()
migrate = Migrate(db=db)

# 初始化
def config_extensions(app):
    db.init_app(app)
    migrate.init_app(app)